<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/taglib.jsp"%>
<div style="float:right;">
	<input type="hidden" id="_id_pageNum" name="pageNum" value="${pagination.pageNum}"/>
	<ul class="pager pagination-sm">
		<c:choose>
			<c:when test="${pagination.firstPage=='true'}">
				<li class="disabled"><a>首页</a></li>
			</c:when>
			<c:otherwise>
				<li><a href="javascript:void(0);" onclick="_queryPage('1')" >首页</a></li>
			</c:otherwise>
		</c:choose>
		
		<c:choose>
			<c:when test="${pagination.firstPage=='true'}">
				<li class="disabled"><a>上一页</a></li>
			</c:when>
			<c:otherwise>
				<li><a href="javascript:void(0);" onclick="_queryPage('${pagination.pageNum - 1}')">上一页</a></li>
			</c:otherwise>
		</c:choose>
			
		<li><a style="background-color:transparent;border:none ;color: rgb(0, 0, 0);">第 ${pagination.pageNum}/${pagination.totalPageCount} 页</a><li>
		
		<c:choose>
			<c:when test="${pagination.lastPage=='true'}">
				<li class="disabled"><a>下一页</a></li>
			</c:when>
			<c:otherwise>
				<li><a  href="javascript:void(0);" onclick="_queryPage('${pagination.pageNum + 1}')">下一页</a></li>
			</c:otherwise>
		</c:choose>
			
		<c:choose>
			<c:when test="${pagination.lastPage=='true'}">
				<li class="disabled"><a>尾页</a></li>
			</c:when>
			<c:otherwise>
				<li><a  href="javascript:void(0);" onclick="_queryPage('${pagination.totalPageCount}')">尾页</a></li>
			</c:otherwise>
		</c:choose>
		
		<li><a style="background-color:transparent;border:none ;color: rgb(0, 0, 0);">共${pagination.totalItemsCount}条记录</a></li>
	</ul>
</div>
					
<script type="text/javascript">
	function _queryPage(pageNum){
		if(pageNum == undefined)
			pageNum = 1;
		$("#_id_pageNum").val(pageNum);
		$("form").submit();
	}
</script>